package cn.com.dhcc.turbo.entity.monitor;

import java.util.Date;

import cn.com.dhcc.app.core.annotation.SiColumn;
import cn.com.dhcc.app.core.annotation.SiNotDbColumn;
import cn.com.dhcc.app.core.annotation.SiTable;
import cn.com.dhcc.app.core.base.ModuleFeatureBean;
/**
 * 告警历史
 * @author qiao
 * @2014-6-4 @下午1:58:46
 */
@SiTable(name="turbo_monitor_history")
public class QuotaValueHistory extends ModuleFeatureBean{

	@SiColumn(isId=true)
	private String id;//ID	N	CHAR(32)	N			
	@SiColumn(name="QUOTA_CODE")
	private String quotaCode;//QUOTA_CODE	 指标编码
	@SiColumn(name="CURRENT_VALUE1")
	private String currentValue1;//CURRENT_VALUE1;//CURRENT_VALUE1	N	VARCHAR2(255)	N			当前值1
	@SiColumn(name="CURRENT_VALUE2")
	private String currentValue2;//CURRENT_VALUE2	N	VARCHAR2(255)	N			当前值2
	@SiColumn(name="CAN_MERGE")
	private String    canMerge;//CAN_MERGE	N	CHAR(1)	Y	1		是否可以合并0 否 1 是
	private String    status;//status	char(1)	y		0 未处理 1已处理（所有需要的通知手段都已操作完成或者管理员手动关闭）
	@SiColumn(name="OWNER_ID")
	private String ownerId;//OWNER_ID;//告警所属节点，系统，为空时代表归属本地节点
	@SiColumn(name="needAlert")
	private String needAlert;//NEEDALERT	N	CHAR(1)	Y			是否需要告警（计算之后），0否，1是。
	@SiColumn(name="ALERT_MSG")
	private String alertMsg;//ALERT_MSG
	@SiColumn(name="HAS_ALERT_METHOD")
	private String hasAlertMethod;//HAS_ALERT_METHOD; 
	private Date mtime;//MTIME	N	DATE	N	sysdate		
	private String remark;//REMARK	N	VARCHAR2(1000)	Y			
	@SiColumn(name="handler_time")
	private Date handlerTime;//处理时间
	
	
	@SiNotDbColumn
	private String alterLevel;//告警级别
	@SiNotDbColumn
	private String quotaName;//指标名称
	/**
	 * 告警处理状态
	 * @author qiao
	 * @2014-6-6 @下午1:24:07
	 */
	public static enum QuotaHadlerStatus{
		HAS_HANDLER("1","已处理"),
		WAIT_HANDLER("0","未处理");
		private String code;
		private String name;
		private QuotaHadlerStatus(String code,String name){
			this.name = name;
			this.code = code;
		}

		public String getName() {
			return name;
		}
		public String getCode() {
			return code;
		}
	}
	
	public Date getHandlerTime() {
		return handlerTime;
	}
	public void setHandlerTime(Date handlerTime) {
		this.handlerTime = handlerTime;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	
	public String getQuotaCode() {
		return quotaCode;
	}
	public void setQuotaCode(String quotaCode) {
		this.quotaCode = quotaCode;
	}
	public String getCurrentValue1() {
		return currentValue1;
	}
	public void setCurrentValue1(String currentValue1) {
		this.currentValue1 = currentValue1;
	}
	
	public String getCurrentValue2() {
		return currentValue2;
	}
	public void setCurrentValue2(String currentValue2) {
		this.currentValue2 = currentValue2;
	}
	
	public Date getMtime() {
		return mtime;
	}
	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}
	public String getRemark() {
		return remark;
	}
	public String getQuotaName() {
		return quotaName;
	}
	public void setQuotaName(String quotaName) {
		this.quotaName = quotaName;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getCanMerge() {
		return canMerge;
	}
	public void setCanMerge(String canMerge) {
		this.canMerge = canMerge;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getNeedAlert() {
		return needAlert;
	}
	public void setNeedAlert(String needAlert) {
		this.needAlert = needAlert;
	}
	public String getAlertMsg() {
		return alertMsg;
	}
	public void setAlertMsg(String alertMsg) {
		this.alertMsg = alertMsg;
	}
	public String getOwnerId() {
		return ownerId;
	}
	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}
	public String getHasAlertMethod() {
		return hasAlertMethod;
	}
	public void setHasAlertMethod(String hasAlertMethod) {
		this.hasAlertMethod = hasAlertMethod;
	}
	public String getAlterLevel() {
		return alterLevel;
	}
	public void setAlterLevel(String alterLevel) {
		this.alterLevel = alterLevel;
	}
}
